#include<iostream>
#include<set>
using namespace std;
int main()
{
	set<int>arr;
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		int a;
		cin >> a;
		arr.insert(a);
	}
	/*for (auto x : arr) {
		cout << x << " ";		
	}*/
	for (auto x = arr.begin(); x != arr.end(); x++) {
		cout << *x << " ";
	}
	return 0;
}